﻿<PageFunction
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib" 
    x:Class="ComicViewer.ViewPage"
    x:TypeArguments="sys:String"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="300"
    Title="PageFunction3">
    <Grid>
        <Canvas Background="Gray" Margin="5">
            <ListView Name="ListViewPaper" Background="Gray">
                <ListView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <StackPanel Orientation="Horizontal"/>
                    </ItemsPanelTemplate>
                </ListView.ItemsPanel>
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <Border BorderBrush="White" BorderThickness="10" CornerRadius="10" Margin="20,20,0,20">
                            <Image Source="{Binding Source}" Stretch="Uniform"/>
                        </Border>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </Canvas>
        <Grid Name="GridMask" Background="#01000000"
              MouseLeftButtonDown="GridMask_MouseLeftButtonDown"
              MouseLeftButtonUp="GridMask_MouseLeftButtonUp"
              MouseMove="GridMask_MouseMove"/>
    </Grid>
</PageFunction>
